home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Interactive Media Design Review 1999
/
Interactive Media Design Review 1999.iso
/
pc
/
Demos
/
Bombardier_PC
/
BSCRIPTS.CST
/
00021_Script_animationH-RL
< prev
next >
Wrap
Text File
|
1999-04-25
|
1KB
|
60 lines
-- ⌐ 1998 @radical.media, inc. & Concurrent New Media Group, L.L.C.
-- Developed for Bombardier, Inc.
--
-- All programming developed by:
-- Robert Fabricant, Valerie Valoueva, Ossi Shaked,
-- Henry Sauvageot, Chris Howell & Chris Girand
--
-- Use of this code by parties other than @radical.media, inc. or their
--agents
-- without the express written consent of @radical.media, inc. AND Concurrent
-- New Media Group, L.L.C. is strictly prohibited.
------------------------------------------------------
on getBehaviorDescription
return "simulates 2D object movie."
end
on mousedown
global oldIndex,sseq,eseq,oldH
repeat while the mouseDown
set index = the mouseh
set curH = the mouseH
set changeH = abs(oldH - curH)
set changeV = abs(index-oldIndex)
if changeH >= changeV then
set movedHoris = TRUE
else
set movedHoris = FALSE
end if
if movedHoris then
if index > oldIndex +2 and oldIndex <> 0 then
if the frame > sseq then
go to (the frame -1)
end if
else if (index < oldIndex-2 and oldIndex <> 0) then
if the frame < eseq then
go to (the frame +1)
end if
end if
end if
updateStage
set oldIndex = index
set oldH = curH
end repeat
pass
end
on mouseup
global oldIndex,oldH
set oldIndex = 0
set oldH = 0
pass
end